<?php
/**********************************************************************************
 *   Copyright(C) 2002 David Stevens
 *
 *   This file is part of OpenBiblio.
 *
 *   OpenBiblio is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   OpenBiblio is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with OpenBiblio; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 **********************************************************************************
 */

  $tab = "admin";
  $nav = "mails_test";

  require_once("../functions/errorFuncs.php");
  require_once("../shared/common.php");
  require_once("../classes/Localize.php");
  require_once("../functions/inputFuncs.php");
  require_once("../funciones.php");
  include_once("../classes/Settings.php");
  include_once("../classes/SettingsQuery.php");  
  $loc = new Localize(OBIB_LOCALE,$tab);
  
  require_once("../shared/logincheck.php");

  require_once("../shared/header.php");

  $mail = $_POST["mail"];
  $asunto = $_POST["asunto"];
  $mensaje = $_POST["mensaje"];
  
?>
  
  <table class="primary">
  <tr>
    <th nowrap="yes" align="left" colspan="2">
      Mailing
    </th>
  </tr>
    
<?php  
  
	$personalizado = '<br><p><font size="2" face="Arial">Prueba de Email</font></p>';
	enviarMail($asunto,$mensaje,$mail,"","");
?>
  <tr>  
    <td nowrap="true" class="primary" colspan="2" align="center"> <input type="button" value="Volver" class="button" onClick="history.back()"></td>
  </tr>
</table>
<br>
<table class="primary"><tr><td valign="top" class="noborder"><font class="small"><? echo $loc->getText("adminTheme_Note"); ?></font></td>
<td class="noborder"><font class="small"><? echo $loc->getText("adminMails_Notetext"); ?></font>
</td></tr></table>
<?php include("../shared/footer.php"); ?>
